// JavaScript Document
href_ys = window.location.href;
if(href_ys != 'https://www.yisu.com/?from=m'){
    if(window.location.toString().indexOf('pref=padindex') != -1){
    }else{
        if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){
            if(window.location.href.indexOf("?mobile")<0 && window.location.href.indexOf("huodong")<0){
                try{
                    window.location.href=href_ys.replace('www.', "m.");
                }catch(e){}
            }
        }
    }
}

